package com.lance.answer.dto;


import com.lance.answer.gui.answer.AnswerObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseInfo implements Comparable{

    private String user;
    private String pwd;
    private int openCourseId;
    private String subjectName;
    private Map<String, AnswerObject> answerMap;

    private XjCourseVideoInfo xjCourseVideoInfo;
    boolean equlas;

    @Override
    public int compareTo(Object o) {
        CourseInfo courseInfo = (CourseInfo) o;
        return Integer.compare(this.openCourseId,courseInfo.openCourseId);
    }
}
